x86emul/test: improve failure location identification for FMA sub-test
authorJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2022 07:38:58 +0000 (09:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2022 07:38:58 +0000 (09:38 +0200)
commit21b4d45bbfd0e901bb77dd8a732bb14702ccec5e
tree02d541d316c9c4e7e90cb78735fad6592584427a
parent65f684b728f779e170335e9e0cbbf82f7e1c7e5b
x86emul/test: improve failure location identification for FMA sub-test

When some FMA set of insns is included in the base instruction set (XOP,
AVX512F, and AVX512-FP16 at present), simd_test() simply invokes
fma_test(), negating its return value. In case of a failure this would
yield a value close to 4G, which doesn't lend itself to easy
identification of the failing test case. Recognize the case in
simd_check_regs() and emit alternative output identifying FMA.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c